<html>
<head>
    <title>Anotador</title>
    <script type="text/javascript" language="javascript">

        function submitPhoto() {
            try {
                //alert("Submit da imagem");
                document.getElementById("submitType").value = "photo";
                document.forms["form1"].submit();

                //                document.getElementById("divPhotoBtns").style.display = "none";
                //                document.getElementById("divGame").style.display = "";
            }
            catch (err) {
                alert("submitPhoto: " + err.description);
            }
        }

    </script>
</head>
<body>
    <form id="form1" enctype="multipart/form-data" method="post">
    <input type="hidden" id="submitType" name="submitType" />
    <h1>
        Anotador
    </h1>
    <br />
    <div id="divUpload">
        <h2>
            Foto
        </h2>
        <div id="divPhotoBtns">
            <input id="uploadPhoto" type="file" name="fileData" />
            <input id="submitPhotoBtn" type="button" value="Submeter" onclick="submitPhoto();" />
        </div>
        <br />
        <br />
    </div>
    </form>
</body>
</html>
